/**
 * @properties={typeid:35,uuid:"FD774967-A698-469A-B8EA-7CBCA27F3407",variableType:-4}
 */
var $NOMBRE_SERVIDOR = globals.$NOMBRE_SERVIDOR;

/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"378BFFF2-900D-4FF9-8E4F-94F29C4C2A23"}
 */
var $NOMBRE_TABLA = "adm_t700_frm_hist";

/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"D133951E-648F-4A77-B6E7-4FC6F9A5371A"}
 */
var $DATA_SOURCE = "db:/" + $NOMBRE_SERVIDOR + "/" + $NOMBRE_TABLA;

/**
 * @param {UUID} adm_t900_usuarios_id
 *
 * @properties={typeid:24,uuid:"82E3400F-5B7E-4D1A-B4AA-DA3C34FC8C9F"}
 * @AllowToRunInFind
 */
function borrar_historial(adm_t900_usuarios_id){
	
	/** @type {JSFoundSet<db:/pigeon_board/adm_t700_frm_hist>}*/
	var fs_adm_t700_frm_hist = databaseManager.getFoundSet($DATA_SOURCE);
	fs_adm_t700_frm_hist.loadAllRecords();
	if (fs_adm_t700_frm_hist.find()){
		fs_adm_t700_frm_hist.adm_t900_usuarios_id = adm_t900_usuarios_id;
		fs_adm_t700_frm_hist.search();
	}
	
	if (fs_adm_t700_frm_hist.getSize()){
		fs_adm_t700_frm_hist.deleteAllRecords();
	}
}